package Entities;

import java.util.List;

public class Team {
	private String name;
	private String password;
	private List<User> Users;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public List<User> getUsers() {
		return Users;
	}
	public void setUsers(List<User> users) {
		Users = users;
	}
	public void addUser(User user){
		Users.add(user);
	}
	public void removeUser(int id){
		for(int i = 0;i<Users.size();i++){
			if(Users.get(i).getID()==id){
				Users.remove(i);
			}
		}
	}
}
